package com.twu.biblioteca;

import java.util.ArrayList;

public class Store {
    protected ArrayList<Item> itemArrayList;

    public Store() {
        this.itemArrayList = new ArrayList<Item>();
    }

    public Item getByid(int id) {
        for(Item b: itemArrayList){
            if(b.getId()==id)
                return b;
        }
        return null;
    }

    public ArrayList<Item> getList(){
        return itemArrayList;

    }
}
